package com.service;

import com.bean.Power;
import com.bean.Role;
import com.bean.User;

import java.util.List;

public interface RoleService {
    List<Role> getAllRole();

    String[] getAllRoles();

    List<Role> getRoles(User user);

    boolean addRole(Role role,List<String> powerNames);

    boolean deleteRole(int key);

    List<Power> showRolePower(int key);

    boolean updateRolePower(int key,List<String> powerNames);

    String selectRoleName(int key);
}
